/*************************************************************************
 *
 * $Id: beep.h 47 2006-07-08 13:15:25Z alpov $
 * 
 *************************************************************************/         

#ifndef _BEEP_H
#define _BEEP_H

#define Beep(x) { if (x) DDRD |= _BV(PD7); else DDRD &= ~_BV(PD7); }

#define BEEP_TIMEOUT    30000
#define BEEP_ONCE_LEN   700
#define BEEP_ON_LEN     500
#define BEEP_OFF_LEN    200
#define BEEP_FREQ       1900

AVRX_EXTERNTASK(BeepTask);
extern void InitBeepTask(void);

extern MessageControlBlock BeepOnce, BeepStart, BeepStop;
extern MessageQueue BeepQueue;

#endif
